package Demo18;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import javax.swing.*;

public class Test {
    public static void main(String[] args) {
//        BorderFactory bf=Conte
//        ApplicationContext ac= new ClassPathXmlApplicationContext("Spring.xml");
        ApplicationContext ac= new ClassPathXmlApplicationContext("applicationContext.xml");
        Zoo z=(Zoo)ac.getBean("z1");
        z.fight();
    }
}
